import fetch from './api'

// loginByEmail

export function login(params){
    return fetch({
        url: '/auth',
        method: 'post',
        data: params
    }).then(res => res.data);
}

// export const requestLogin = params => {
//     return instance.post(`/auth`, params).then(res => res.data);
// };